DominantColorsOptions

data class DominantColorsOptions(val count: Int = 5, val ignoreWhite: Boolean = false)

Options for BlockApi.getDominantColors.

Parameters

count

number of dominant colors to extract. The returned palette may contain fewer entries for images with very little variation, and is empty when count is 0. Defaults to 5.

ignoreWhite

if true, near-white pixels are excluded from the analysis. Useful when analyzing images on white backgrounds to avoid the background dominating the result. Defaults to false.

Constructors

Link copied to clipboard
constructor(count: Int = 5, ignoreWhite: Boolean = false)

Properties

Link copied to clipboard
val count: Int = 5
Link copied to clipboard
val ignoreWhite: Boolean = false